
package org.jsystemtest.course.tests;

import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;

import jsystem.framework.report.ListenerstManager;

import org.python.modules.newmodule;
import org.python.modules.re;

import com.reporter.object.Date;
import com.reporter.object.Report;
import com.reporter.object.Start;
import com.reporter.object.Time;

public class XML {
	
	public static void main(String[] args) throws JAXBException {
		
		Report report = new Report();
		report.setName("name");
		Start s = new Start();
		Date date = new Date();
		date.setFormat("YYYYMMDD");
		date.setVal("20000101");
		Time t = new Time();
		t.setFormat("HHMMSS");
		t.setVal("195043");
		s.setDate(date);
		s.setTime(t);
		
		report.setStart(s);
		
			
		
		
		
		 // create JAXB context and instantiate marshaller
	    JAXBContext context = JAXBContext.newInstance(Report.class);
	    Marshaller m = context.createMarshaller();
	    m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);

	    // Write to System.out
	    m.marshal(report, System.out);
	}

}
